package com.itheima.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/*

 */
@RestController
public class FallbackController {

    @RequestMapping(value = "/fallbackController")
    public Map fallbackController(){
        Map map = new HashMap();
        map.put("code","502");
        map.put("msg","当前网络延迟过大,请稍后访问");
        return map;
    }
}
